import re
import time
import requests


# 获取当前时间戳的匿名函数
now = lambda: time.time()


# 普通函数: 请求url获取响应，然后打印响应的状态码
def parse_url(url):
    resp = requests.get(url)
    print(resp.status_code)
    print(resp.text)


# 入口函数
def run():
    url = ['https://km.ke.com/xiaoqu/4320031735359377/',
           'https://km.ke.com/xiaoqu/4320024554870426/',
           'https://km.ke.com/xiaoqu/4320032502393648/',
           'https://km.ke.com/xiaoqu/4320032505542375/',
           'https://km.ke.com/xiaoqu/4320023136447940/',
           ]
    for i in url:
        parse_url(i)


if __name__ == '__main__':
    start_time = now()
    run()
    print(f"耗时: {now() - start_time}")
